home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / netzwerk / parnet / test / parmon.c < prev    next >
C/C++ Source or Header  |  1996-02-26  |  464b  |  36 lines

  1. /*
  2.  *  PARMON.C
  3.  *
  4.  *  Monitor parnet debug junk
  5.  */
  6.  
  7. #include "defs.h"
  8.  
  9. void
  10. main(ac, av)
  11. int ac;
  12. char *av[];
  13. {
  14.     PubPort *port = (PubPort *)FindPort(PORTNAME);
  15.     char buf[32];
  16.  
  17.     buf[0] = 0;
  18.     if (port == NULL) {
  19.     puts("couldn't find port");
  20.     exit(1);
  21.     }
  22.     for (;;) {
  23.     /*
  24.     if (strcmp(port->DebugBuf, buf) != 0) {
  25.         strcpy(buf, port->DebugBuf);
  26.         printf("%s\n", buf);
  27.     }
  28.      Delay(5L);
  29.     */
  30.  
  31.     printf("%s\n",port->DebugBuf);
  32.     Chk_Abort();
  33.     }
  34. }
  35.  
  36.